.class public Lcom/estrongs/android/ui/view/CrownView;
.super Landroid/view/View;
.source "CrownView.java"


# instance fields
.field private a:Landroid/graphics/Bitmap;

.field private b:Landroid/graphics/Bitmap;

.field private c:Landroid/graphics/Paint;

.field private d:Landroid/graphics/Paint;

.field private e:Z

.field private f:Landroid/animation/ObjectAnimator;

.field private g:Landroid/animation/ValueAnimator;

.field private h:I

.field private i:I

.field private j:I

.field private k:I

.field private l:I

.field private m:I

.field private n:I

.field private o:I

.field private p:Z

.field private q:Landroid/animation/ValueAnimator;

.field private final r:I

.field private final s:I


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 2

    .line 1
    invoke-direct {p0, p1}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    .line 2
    new-instance p1, Landroid/graphics/Paint;

    const/4 v0, 0x1

    invoke-direct {p1, v0}, Landroid/graphics/Paint;-><init>(I)V

    iput-object p1, p0, Lcom/estrongs/android/ui/view/CrownView;->c:Landroid/graphics/Paint;

    .line 3
    new-instance p1, Landroid/graphics/Paint;

    invoke-direct {p1, v0}, Landroid/graphics/Paint;-><init>(I)V

    iput-object p1, p0, Lcom/estrongs/android/ui/view/CrownView;->d:Landroid/graphics/Paint;

    .line 4
    invoke-virtual {p0}, Landroid/view/View;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    const v0, 0x7f080584

    invoke-virtual {p1, v0}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object p1

    check-cast p1, Landroid/graphics/drawable/BitmapDrawable;

    .line 5
    invoke-virtual {p1}, Landroid/graphics/drawable/BitmapDrawable;->getBitmap()Landroid/graphics/Bitmap;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/android/ui/view/CrownView;->a:Landroid/graphics/Bitmap;

    .line 6
    invoke-virtual {p0}, Landroid/view/View;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    const v0, 0x7f08046d

    invoke-virtual {p1, v0}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object p1

    check-cast p1, Landroid/graphics/drawable/BitmapDrawable;

    invoke-virtual {p1}, Landroid/graphics/drawable/BitmapDrawable;->getBitmap()Landroid/graphics/Bitmap;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/android/ui/view/CrownView;->b:Landroid/graphics/Bitmap;

    .line 7
    iget-object p1, p0, Lcom/estrongs/android/ui/view/CrownView;->c:Landroid/graphics/Paint;

    new-instance v0, Landroid/graphics/PorterDuffXfermode;

    sget-object v1, Landroid/graphics/PorterDuff$Mode;->SRC_ATOP:Landroid/graphics/PorterDuff$Mode;

    invoke-direct {v0, v1}, Landroid/graphics/PorterDuffXfermode;-><init>(Landroid/graphics/PorterDuff$Mode;)V

    invoke-virtual {p1, v0}, Landroid/graphics/Paint;->setXfermode(Landroid/graphics/Xfermode;)Landroid/graphics/Xfermode;

    .line 8
    iget-object p1, p0, Lcom/estrongs/android/ui/view/CrownView;->d:Landroid/graphics/Paint;

    const/4 v0, -0x1

    invoke-virtual {p1, v0}, Landroid/graphics/Paint;->setColor(I)V

    .line 9
    iget-object p1, p0, Lcom/estrongs/android/ui/view/CrownView;->d:Landroid/graphics/Paint;

    sget-object v0, Landroid/graphics/Paint$Cap;->ROUND:Landroid/graphics/Paint$Cap;

    invoke-virtual {p1, v0}, Landroid/graphics/Paint;->setStrokeCap(Landroid/graphics/Paint$Cap;)V

    .line 10
    invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object p1

    const/high16 v0, 0x40000000    # 2.0f

    invoke-static {p1, v0}, Lcom/jecelyin/editor/v2/utils/h;->a(Landroid/content/Context;F)I

    move-result p1

    iput p1, p0, Lcom/estrongs/android/ui/view/CrownView;->r:I

    .line 11
    invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object p1

    const/high16 v0, 0x3fc00000    # 1.5f

    invoke-static {p1, v0}, Lcom/jecelyin/editor/v2/utils/h;->a(Landroid/content/Context;F)I

    move-result p1

    iput p1, p0, Lcom/estrongs/android/ui/view/CrownView;->s:I

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 1
    .param p2    # Landroid/util/AttributeSet;
        .annotation build Landroidx/annotation/Nullable;
        .end annotation
    .end param

    .line 12
    invoke-direct {p0, p1, p2}, Landroid/view/View;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 13
    new-instance p1, Landroid/graphics/Paint;

    const/4 p2, 0x1

    invoke-direct {p1, p2}, Landroid/graphics/Paint;-><init>(I)V

    iput-object p1, p0, Lcom/estrongs/android/ui/view/CrownView;->c:Landroid/graphics/Paint;

    .line 14
    new-instance p1, Landroid/graphics/Paint;

    invoke-direct {p1, p2}, Landroid/graphics/Paint;-><init>(I)V

    iput-object p1, p0, Lcom/estrongs/android/ui/view/CrownView;->d:Landroid/graphics/Paint;

    .line 15
    invoke-virtual {p0}, Landroid/view/View;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    const p2, 0x7f080584

    invoke-virtual {p1, p2}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object p1

    check-cast p1, Landroid/graphics/drawable/BitmapDrawable;

    .line 16
    invoke-virtual {p1}, Landroid/graphics/drawable/BitmapDrawable;->getBitmap()Landroid/graphics/Bitmap;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/android/ui/view/CrownView;->a:Landroid/graphics/Bitmap;

    .line 17
    invoke-virtual {p0}, Landroid/view/View;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    const p2, 0x7f08046d

    invoke-virtual {p1, p2}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object p1

    check-cast p1, Landroid/graphics/drawable/BitmapDrawable;

    invoke-virtual {p1}, Landroid/graphics/drawable/BitmapDrawable;->getBitmap()Landroid/graphics/Bitmap;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/android/ui/view/CrownView;->b:Landroid/graphics/Bitmap;

    .line 18
    iget-object p1, p0, Lcom/estrongs/android/ui/view/CrownView;->c:Landroid/graphics/Paint;

    new-instance p2, Landroid/graphics/PorterDuffXfermode;

    sget-object v0, Landroid/graphics/PorterDuff$Mode;->SRC_ATOP:Landroid/graphics/PorterDuff$Mode;

    invoke-direct {p2, v0}, Landroid/graphics/PorterDuffXfermode;-><init>(Landroid/graphics/PorterDuff$Mode;)V

    invoke-virtual {p1, p2}, Landroid/graphics/Paint;->setXfermode(Landroid/graphics/Xfermode;)Landroid/graphics/Xfermode;

    .line 19
    iget-object p1, p0, Lcom/estrongs/android/ui/view/CrownView;->d:Landroid/graphics/Paint;

    const/4 p2, -0x1

    invoke-virtual {p1, p2}, Landroid/graphics/Paint;->setColor(I)V

    .line 20
    iget-object p1, p0, Lcom/estrongs/android/ui/view/CrownView;->d:Landroid/graphics/Paint;

    sget-object p2, Landroid/graphics/Paint$Cap;->ROUND:Landroid/graphics/Paint$Cap;

    invoke-virtual {p1, p2}, Landroid/graphics/Paint;->setStrokeCap(Landroid/graphics/Paint$Cap;)V

    .line 21
    invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object p1

    const/high16 p2, 0x40000000    # 2.0f

    invoke-static {p1, p2}, Lcom/jecelyin/editor/v2/utils/h;->a(Landroid/content/Context;F)I

    move-result p1

    iput p1, p0, Lcom/estrongs/android/ui/view/CrownView;->r:I

    .line 22
    invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object p1

    const/high16 p2, 0x3fc00000    # 1.5f

    invoke-static {p1, p2}, Lcom/jecelyin/editor/v2/utils/h;->a(Landroid/content/Context;F)I

    move-result p1

    iput p1, p0, Lcom/estrongs/android/ui/view/CrownView;->s:I

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 0
    .param p2    # Landroid/util/AttributeSet;
        .annotation build Landroidx/annotation/Nullable;
        .end annotation
    .end param

    .line 23
    invoke-direct {p0, p1, p2, p3}, Landroid/view/View;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 24
    new-instance p1, Landroid/graphics/Paint;

    const/4 p2, 0x1

    invoke-direct {p1, p2}, Landroid/graphics/Paint;-><init>(I)V

    iput-object p1, p0, Lcom/estrongs/android/ui/view/CrownView;->c:Landroid/graphics/Paint;

    .line 25
    new-instance p1, Landroid/graphics/Paint;

    invoke-direct {p1, p2}, Landroid/graphics/Paint;-><init>(I)V

    iput-object p1, p0, Lcom/estrongs/android/ui/view/CrownView;->d:Landroid/graphics/Paint;

    .line 26
    invoke-virtual {p0}, Landroid/view/View;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    const p2, 0x7f080584

    invoke-virtual {p1, p2}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object p1

    check-cast p1, Landroid/graphics/drawable/BitmapDrawable;

    .line 27
    invoke-virtual {p1}, Landroid/graphics/drawable/BitmapDrawable;->getBitmap()Landroid/graphics/Bitmap;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/android/ui/view/CrownView;->a:Landroid/graphics/Bitmap;

    .line 28
    invoke-virtual {p0}, Landroid/view/View;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    const p2, 0x7f08046d

    invoke-virtual {p1, p2}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object p1

    check-cast p1, Landroid/graphics/drawable/BitmapDrawable;

    invoke-virtual {p1}, Landroid/graphics/drawable/BitmapDrawable;->getBitmap()Landroid/graphics/Bitmap;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/android/ui/view/CrownView;->b:Landroid/graphics/Bitmap;

    .line 29
    iget-object p1, p0, Lcom/estrongs/android/ui/view/CrownView;->c:Landroid/graphics/Paint;

    new-instance p2, Landroid/graphics/PorterDuffXfermode;

    sget-object p3, Landroid/graphics/PorterDuff$Mode;->SRC_ATOP:Landroid/graphics/PorterDuff$Mode;

    invoke-direct {p2, p3}, Landroid/graphics/PorterDuffXfermode;-><init>(Landroid/graphics/PorterDuff$Mode;)V

    invoke-virtual {p1, p2}, Landroid/graphics/Paint;->setXfermode(Landroid/graphics/Xfermode;)Landroid/graphics/Xfermode;

    .line 30
    iget-object p1, p0, Lcom/estrongs/android/ui/view/CrownView;->d:Landroid/graphics/Paint;

    const/4 p2, -0x1

    invoke-virtual {p1, p2}, Landroid/graphics/Paint;->setColor(I)V

    .line 31
    iget-object p1, p0, Lcom/estrongs/android/ui/view/CrownView;->d:Landroid/graphics/Paint;

    sget-object p2, Landroid/graphics/Paint$Cap;->ROUND:Landroid/graphics/Paint$Cap;

    invoke-virtual {p1, p2}, Landroid/graphics/Paint;->setStrokeCap(Landroid/graphics/Paint$Cap;)V

    .line 32
    invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object p1

    const/high16 p2, 0x40000000    # 2.0f

    invoke-static {p1, p2}, Lcom/jecelyin/editor/v2/utils/h;->a(Landroid/content/Context;F)I

    move-result p1

    iput p1, p0, Lcom/estrongs/android/ui/view/CrownView;->r:I

    .line 33
    invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object p1

    const/high16 p2, 0x3fc00000    # 1.5f

    invoke-static {p1, p2}, Lcom/jecelyin/editor/v2/utils/h;->a(Landroid/content/Context;F)I

    move-result p1

    iput p1, p0, Lcom/estrongs/android/ui/view/CrownView;->s:I

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/ui/view/CrownView;I)I
    .locals 0

    .line 1
    iput p1, p0, Lcom/estrongs/android/ui/view/CrownView;->h:I

    return p1
.end method

.method private a(Landroid/animation/ValueAnimator;)V
    .locals 0

    .line 4
    invoke-virtual {p1}, Landroid/animation/ValueAnimator;->removeAllUpdateListeners()V

    .line 5
    invoke-virtual {p1}, Landroid/animation/ValueAnimator;->removeAllListeners()V

    .line 6
    invoke-virtual {p1}, Landroid/animation/ValueAnimator;->end()V

    return-void
.end method

.method private a(Landroid/graphics/Canvas;)V
    .locals 4

    .line 24
    iget-object v0, p0, Lcom/estrongs/android/ui/view/CrownView;->a:Landroid/graphics/Bitmap;

    iget v1, p0, Lcom/estrongs/android/ui/view/CrownView;->i:I

    int-to-float v1, v1

    iget v2, p0, Lcom/estrongs/android/ui/view/CrownView;->j:I

    int-to-float v2, v2

    const/4 v3, 0x0

    invoke-virtual {p1, v0, v1, v2, v3}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/ui/view/CrownView;)V
    .locals 0

    .line 3
    invoke-direct {p0}, Lcom/estrongs/android/ui/view/CrownView;->c()V

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/ui/view/CrownView;Z)Z
    .locals 0

    .line 2
    iput-boolean p1, p0, Lcom/estrongs/android/ui/view/CrownView;->e:Z

    return p1
.end method

.method static synthetic b(Lcom/estrongs/android/ui/view/CrownView;I)I
    .locals 0

    .line 1
    iput p1, p0, Lcom/estrongs/android/ui/view/CrownView;->k:I

    return p1
.end method

.method private b(Landroid/graphics/Canvas;)V
    .locals 6

    .line 15
    iget v0, p0, Lcom/estrongs/android/ui/view/CrownView;->m:I

    iget v1, p0, Lcom/estrongs/android/ui/view/CrownView;->k:I

    add-int/2addr v0, v1

    .line 16
    iget v1, p0, Lcom/estrongs/android/ui/view/CrownView;->r:I

    add-int/2addr v1, v0

    const/4 v2, 0x0

    :goto_0
    const/16 v3, 0x8

    if-ge v2, v3, :cond_0

    .line 17
    invoke-virtual {p1}, Landroid/graphics/Canvas;->save()I

    int-to-float v3, v2

    const/high16 v4, 0x42340000    # 45.0f

    mul-float v4, v4, v3

    .line 18
    iget v3, p0, Lcom/estrongs/android/ui/view/CrownView;->l:I

    int-to-float v3, v3

    iget v5, p0, Lcom/estrongs/android/ui/view/CrownView;->m:I

    int-to-float v5, v5

    invoke-virtual {p1, v4, v3, v5}, Landroid/graphics/Canvas;->rotate(FFF)V

    .line 19
    iget-object v3, p0, Lcom/estrongs/android/ui/view/CrownView;->d:Landroid/graphics/Paint;

    iget v4, p0, Lcom/estrongs/android/ui/view/CrownView;->s:I

    int-to-float v4, v4

    invoke-virtual {v3, v4}, Landroid/graphics/Paint;->setStrokeWidth(F)V

    .line 20
    iget-object v3, p0, Lcom/estrongs/android/ui/view/CrownView;->d:Landroid/graphics/Paint;

    iget v4, p0, Lcom/estrongs/android/ui/view/CrownView;->o:I

    invoke-virtual {v3, v4}, Landroid/graphics/Paint;->setAlpha(I)V

    .line 21
    iget v3, p0, Lcom/estrongs/android/ui/view/CrownView;->l:I

    int-to-float v3, v3

    int-to-float v4, v0

    iget-object v5, p0, Lcom/estrongs/android/ui/view/CrownView;->d:Landroid/graphics/Paint;

    invoke-virtual {p1, v3, v4, v5}, Landroid/graphics/Canvas;->drawPoint(FFLandroid/graphics/Paint;)V

    const/high16 v3, -0x3ef00000    # -9.0f

    .line 22
    iget v4, p0, Lcom/estrongs/android/ui/view/CrownView;->l:I

    int-to-float v4, v4

    iget v5, p0, Lcom/estrongs/android/ui/view/CrownView;->m:I

    int-to-float v5, v5

    invoke-virtual {p1, v3, v4, v5}, Landroid/graphics/Canvas;->rotate(FFF)V

    .line 23
    iget-object v3, p0, Lcom/estrongs/android/ui/view/CrownView;->d:Landroid/graphics/Paint;

    iget v4, p0, Lcom/estrongs/android/ui/view/CrownView;->r:I

    int-to-float v4, v4

    invoke-virtual {v3, v4}, Landroid/graphics/Paint;->setStrokeWidth(F)V

    .line 24
    iget-object v3, p0, Lcom/estrongs/android/ui/view/CrownView;->d:Landroid/graphics/Paint;

    iget v4, p0, Lcom/estrongs/android/ui/view/CrownView;->n:I

    invoke-virtual {v3, v4}, Landroid/graphics/Paint;->setAlpha(I)V

    .line 25
    iget v3, p0, Lcom/estrongs/android/ui/view/CrownView;->l:I

    int-to-float v3, v3

    int-to-float v4, v1

    iget-object v5, p0, Lcom/estrongs/android/ui/view/CrownView;->d:Landroid/graphics/Paint;

    invoke-virtual {p1, v3, v4, v5}, Landroid/graphics/Canvas;->drawPoint(FFLandroid/graphics/Paint;)V

    .line 26
    invoke-virtual {p1}, Landroid/graphics/Canvas;->restore()V

    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    :cond_0
    return-void
.end method

.method static synthetic b(Lcom/estrongs/android/ui/view/CrownView;Z)Z
    .locals 0

    .line 2
    iput-boolean p1, p0, Lcom/estrongs/android/ui/view/CrownView;->p:Z

    return p1
.end method

.method static synthetic c(Lcom/estrongs/android/ui/view/CrownView;I)I
    .locals 0

    .line 1
    iput p1, p0, Lcom/estrongs/android/ui/view/CrownView;->o:I

    return p1
.end method

.method private c()V
    .locals 3

    .line 2
    invoke-virtual {p0}, Lcom/estrongs/android/ui/view/CrownView;->b()V

    const/4 v0, 0x2

    new-array v0, v0, [I

    const/4 v1, 0x0

    aput v1, v0, v1

    .line 3
    iget-object v1, p0, Lcom/estrongs/android/ui/view/CrownView;->a:Landroid/graphics/Bitmap;

    invoke-virtual {v1}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v1

    mul-int/lit8 v1, v1, 0x6

    div-int/lit8 v1, v1, 0x7

    const/4 v2, 0x1

    aput v1, v0, v2

    invoke-static {v0}, Landroid/animation/ValueAnimator;->ofInt([I)Landroid/animation/ValueAnimator;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/ui/view/CrownView;->q:Landroid/animation/ValueAnimator;

    .line 4
    new-instance v1, Lcom/estrongs/android/ui/view/CrownView$d;

    invoke-direct {v1, p0}, Lcom/estrongs/android/ui/view/CrownView$d;-><init>(Lcom/estrongs/android/ui/view/CrownView;)V

    invoke-virtual {v0, v1}, Landroid/animation/ValueAnimator;->addUpdateListener(Landroid/animation/ValueAnimator$AnimatorUpdateListener;)V

    .line 5
    iget-object v0, p0, Lcom/estrongs/android/ui/view/CrownView;->q:Landroid/animation/ValueAnimator;

    new-instance v1, Lcom/estrongs/android/ui/view/CrownView$e;

    invoke-direct {v1, p0}, Lcom/estrongs/android/ui/view/CrownView$e;-><init>(Lcom/estrongs/android/ui/view/CrownView;)V

    invoke-virtual {v0, v1}, Landroid/animation/ValueAnimator;->addListener(Landroid/animation/Animator$AnimatorListener;)V

    .line 6
    iget-object v0, p0, Lcom/estrongs/android/ui/view/CrownView;->q:Landroid/animation/ValueAnimator;

    const-wide/16 v1, 0x320

    invoke-virtual {v0, v1, v2}, Landroid/animation/ValueAnimator;->setDuration(J)Landroid/animation/ValueAnimator;

    .line 7
    iget-object v0, p0, Lcom/estrongs/android/ui/view/CrownView;->q:Landroid/animation/ValueAnimator;

    new-instance v1, Landroidx/interpolator/view/animation/FastOutSlowInInterpolator;

    invoke-direct {v1}, Landroidx/interpolator/view/animation/FastOutSlowInInterpolator;-><init>()V

    invoke-virtual {v0, v1}, Landroid/animation/ValueAnimator;->setInterpolator(Landroid/animation/TimeInterpolator;)V

    .line 8
    iget-object v0, p0, Lcom/estrongs/android/ui/view/CrownView;->q:Landroid/animation/ValueAnimator;

    invoke-virtual {v0}, Landroid/animation/ValueAnimator;->start()V

    return-void
.end method

.method static synthetic d(Lcom/estrongs/android/ui/view/CrownView;I)I
    .locals 0

    .line 1
    iput p1, p0, Lcom/estrongs/android/ui/view/CrownView;->n:I

    return p1
.end method


# virtual methods
.method public a()V
    .locals 3

    .line 7
    invoke-virtual {p0}, Lcom/estrongs/android/ui/view/CrownView;->b()V

    const/4 v0, 0x5

    new-array v0, v0, [F

    .line 8
    fill-array-data v0, :array_0

    const-string v1, "Rotation"

    invoke-static {p0, v1, v0}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/ui/view/CrownView;->f:Landroid/animation/ObjectAnimator;

    const/4 v1, 0x2

    .line 9
    invoke-virtual {v0, v1}, Landroid/animation/ObjectAnimator;->setRepeatCount(I)V

    .line 10
    iget-object v0, p0, Lcom/estrongs/android/ui/view/CrownView;->f:Landroid/animation/ObjectAnimator;

    const-wide/16 v1, 0xc8

    invoke-virtual {v0, v1, v2}, Landroid/animation/ObjectAnimator;->setDuration(J)Landroid/animation/ObjectAnimator;

    .line 11
    iget-object v0, p0, Lcom/estrongs/android/ui/view/CrownView;->f:Landroid/animation/ObjectAnimator;

    new-instance v1, Landroid/view/animation/LinearInterpolator;

    invoke-direct {v1}, Landroid/view/animation/LinearInterpolator;-><init>()V

    invoke-virtual {v0, v1}, Landroid/animation/ObjectAnimator;->setInterpolator(Landroid/animation/TimeInterpolator;)V

    .line 12
    iget-object v0, p0, Lcom/estrongs/android/ui/view/CrownView;->f:Landroid/animation/ObjectAnimator;

    new-instance v1, Lcom/estrongs/android/ui/view/CrownView$a;

    invoke-direct {v1, p0}, Lcom/estrongs/android/ui/view/CrownView$a;-><init>(Lcom/estrongs/android/ui/view/CrownView;)V

    invoke-virtual {v0, v1}, Landroid/animation/ObjectAnimator;->addListener(Landroid/animation/Animator$AnimatorListener;)V

    .line 13
    iget-object v0, p0, Lcom/estrongs/android/ui/view/CrownView;->f:Landroid/animation/ObjectAnimator;

    invoke-virtual {v0}, Landroid/animation/ObjectAnimator;->start()V

    return-void

    :array_0
    .array-data 4
        0x0
        0x40e00000    # 7.0f
        0x0
        -0x3f200000    # -7.0f
        0x0
    .end array-data
.end method

.method public a(I)V
    .locals 8

    .line 14
    invoke-virtual {p0}, Lcom/estrongs/android/ui/view/CrownView;->b()V

    const/4 v0, 0x0

    const/4 v1, 0x1

    const/4 v2, -0x1

    if-ne p1, v2, :cond_0

    const/4 v2, 0x1

    goto :goto_0

    :cond_0
    const/4 v2, 0x0

    :goto_0
    const/4 v3, 0x2

    new-array v4, v3, [I

    .line 15
    iget v5, p0, Lcom/estrongs/android/ui/view/CrownView;->i:I

    iget-object v6, p0, Lcom/estrongs/android/ui/view/CrownView;->b:Landroid/graphics/Bitmap;

    .line 16
    invoke-virtual {v6}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v6

    if-eqz v2, :cond_1

    const/4 v7, 0x2

    goto :goto_1

    :cond_1
    const/4 v7, 0x1

    :goto_1
    mul-int v6, v6, v7

    sub-int/2addr v5, v6

    aput v5, v4, v0

    iget v0, p0, Lcom/estrongs/android/ui/view/CrownView;->i:I

    iget-object v5, p0, Lcom/estrongs/android/ui/view/CrownView;->a:Landroid/graphics/Bitmap;

    .line 17
    invoke-virtual {v5}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v5

    add-int/2addr v0, v5

    iget-object v5, p0, Lcom/estrongs/android/ui/view/CrownView;->b:Landroid/graphics/Bitmap;

    invoke-virtual {v5}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v5

    if-eqz v2, :cond_2

    goto :goto_2

    :cond_2
    const/4 v3, 0x1

    :goto_2
    mul-int v5, v5, v3

    add-int/2addr v0, v5

    aput v0, v4, v1

    .line 18
    invoke-static {v4}, Landroid/animation/ValueAnimator;->ofInt([I)Landroid/animation/ValueAnimator;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/ui/view/CrownView;->g:Landroid/animation/ValueAnimator;

    .line 19
    new-instance v1, Lcom/estrongs/android/ui/view/CrownView$b;

    invoke-direct {v1, p0}, Lcom/estrongs/android/ui/view/CrownView$b;-><init>(Lcom/estrongs/android/ui/view/CrownView;)V

    invoke-virtual {v0, v1}, Landroid/animation/ValueAnimator;->addUpdateListener(Landroid/animation/ValueAnimator$AnimatorUpdateListener;)V

    .line 20
    iget-object v0, p0, Lcom/estrongs/android/ui/view/CrownView;->g:Landroid/animation/ValueAnimator;

    new-instance v1, Lcom/estrongs/android/ui/view/CrownView$c;

    invoke-direct {v1, p0}, Lcom/estrongs/android/ui/view/CrownView$c;-><init>(Lcom/estrongs/android/ui/view/CrownView;)V

    invoke-virtual {v0, v1}, Landroid/animation/ValueAnimator;->addListener(Landroid/animation/Animator$AnimatorListener;)V

    .line 21
    iget-object v0, p0, Lcom/estrongs/android/ui/view/CrownView;->g:Landroid/animation/ValueAnimator;

    const-wide/16 v1, 0x7d0

    invoke-virtual {v0, v1, v2}, Landroid/animation/ValueAnimator;->setDuration(J)Landroid/animation/ValueAnimator;

    .line 22
    iget-object v0, p0, Lcom/estrongs/android/ui/view/CrownView;->g:Landroid/animation/ValueAnimator;

    invoke-virtual {v0, p1}, Landroid/animation/ValueAnimator;->setRepeatCount(I)V

    .line 23
    iget-object p1, p0, Lcom/estrongs/android/ui/view/CrownView;->g:Landroid/animation/ValueAnimator;

    invoke-virtual {p1}, Landroid/animation/ValueAnimator;->start()V

    return-void
.end method

.method public b()V
    .locals 2

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/ui/view/CrownView;->f:Landroid/animation/ObjectAnimator;

    const/4 v1, 0x0

    if-eqz v0, :cond_0

    .line 4
    invoke-direct {p0, v0}, Lcom/estrongs/android/ui/view/CrownView;->a(Landroid/animation/ValueAnimator;)V

    .line 5
    iput-object v1, p0, Lcom/estrongs/android/ui/view/CrownView;->f:Landroid/animation/ObjectAnimator;

    .line 6
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/ui/view/CrownView;->q:Landroid/animation/ValueAnimator;

    if-eqz v0, :cond_1

    .line 7
    invoke-direct {p0, v0}, Lcom/estrongs/android/ui/view/CrownView;->a(Landroid/animation/ValueAnimator;)V

    .line 8
    iput-object v1, p0, Lcom/estrongs/android/ui/view/CrownView;->q:Landroid/animation/ValueAnimator;

    .line 9
    :cond_1
    iget-object v0, p0, Lcom/estrongs/android/ui/view/CrownView;->g:Landroid/animation/ValueAnimator;

    if-eqz v0, :cond_2

    .line 10
    invoke-direct {p0, v0}, Lcom/estrongs/android/ui/view/CrownView;->a(Landroid/animation/ValueAnimator;)V

    .line 11
    iput-object v1, p0, Lcom/estrongs/android/ui/view/CrownView;->g:Landroid/animation/ValueAnimator;

    :cond_2
    const/4 v0, 0x0

    .line 12
    iput-boolean v0, p0, Lcom/estrongs/android/ui/view/CrownView;->e:Z

    .line 13
    iput-boolean v0, p0, Lcom/estrongs/android/ui/view/CrownView;->p:Z

    .line 14
    invoke-virtual {p0}, Landroid/view/View;->invalidate()V

    return-void
.end method

.method protected onDraw(Landroid/graphics/Canvas;)V
    .locals 8

    .line 1
    invoke-super {p0, p1}, Landroid/view/View;->onDraw(Landroid/graphics/Canvas;)V

    .line 2
    iget-boolean v0, p0, Lcom/estrongs/android/ui/view/CrownView;->p:Z

    if-eqz v0, :cond_0

    .line 3
    invoke-direct {p0, p1}, Lcom/estrongs/android/ui/view/CrownView;->b(Landroid/graphics/Canvas;)V

    .line 4
    :cond_0
    iget-boolean v0, p0, Lcom/estrongs/android/ui/view/CrownView;->e:Z

    if-eqz v0, :cond_1

    const/4 v2, 0x0

    const/4 v3, 0x0

    .line 5
    invoke-virtual {p0}, Landroid/view/View;->getWidth()I

    move-result v0

    int-to-float v4, v0

    invoke-virtual {p0}, Landroid/view/View;->getHeight()I

    move-result v0

    int-to-float v5, v0

    const/4 v6, 0x0

    const/16 v7, 0x1f

    move-object v1, p1

    invoke-virtual/range {v1 .. v7}, Landroid/graphics/Canvas;->saveLayer(FFFFLandroid/graphics/Paint;I)I

    move-result v0

    .line 6
    invoke-direct {p0, p1}, Lcom/estrongs/android/ui/view/CrownView;->a(Landroid/graphics/Canvas;)V

    .line 7
    iget-object v1, p0, Lcom/estrongs/android/ui/view/CrownView;->b:Landroid/graphics/Bitmap;

    iget v2, p0, Lcom/estrongs/android/ui/view/CrownView;->h:I

    int-to-float v2, v2

    .line 8
    invoke-virtual {p0}, Landroid/view/View;->getHeight()I

    move-result v3

    iget-object v4, p0, Lcom/estrongs/android/ui/view/CrownView;->b:Landroid/graphics/Bitmap;

    invoke-virtual {v4}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v4

    sub-int/2addr v3, v4

    shr-int/lit8 v3, v3, 0x1

    int-to-float v3, v3

    iget-object v4, p0, Lcom/estrongs/android/ui/view/CrownView;->c:Landroid/graphics/Paint;

    .line 9
    invoke-virtual {p1, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    .line 10
    invoke-virtual {p1, v0}, Landroid/graphics/Canvas;->restoreToCount(I)V

    goto :goto_0

    .line 11
    :cond_1
    invoke-direct {p0, p1}, Lcom/estrongs/android/ui/view/CrownView;->a(Landroid/graphics/Canvas;)V

    :goto_0
    return-void
.end method

.method protected onMeasure(II)V
    .locals 0

    .line 1
    invoke-super {p0, p1, p2}, Landroid/view/View;->onMeasure(II)V

    .line 2
    iget-object p1, p0, Lcom/estrongs/android/ui/view/CrownView;->a:Landroid/graphics/Bitmap;

    invoke-virtual {p1}, Landroid/graphics/Bitmap;->getWidth()I

    move-result p1

    invoke-virtual {p0}, Landroid/view/View;->getMeasuredHeight()I

    move-result p2

    invoke-virtual {p0, p1, p2}, Landroid/view/View;->setMeasuredDimension(II)V

    return-void
.end method

.method protected onSizeChanged(IIII)V
    .locals 0

    .line 1
    invoke-super {p0, p1, p2, p3, p4}, Landroid/view/View;->onSizeChanged(IIII)V

    .line 2
    invoke-virtual {p0}, Landroid/view/View;->getWidth()I

    move-result p3

    iget-object p4, p0, Lcom/estrongs/android/ui/view/CrownView;->a:Landroid/graphics/Bitmap;

    invoke-virtual {p4}, Landroid/graphics/Bitmap;->getWidth()I

    move-result p4

    sub-int/2addr p3, p4

    div-int/lit8 p3, p3, 0x2

    iput p3, p0, Lcom/estrongs/android/ui/view/CrownView;->i:I

    .line 3
    invoke-virtual {p0}, Landroid/view/View;->getHeight()I

    move-result p3

    iget-object p4, p0, Lcom/estrongs/android/ui/view/CrownView;->a:Landroid/graphics/Bitmap;

    invoke-virtual {p4}, Landroid/graphics/Bitmap;->getHeight()I

    move-result p4

    sub-int/2addr p3, p4

    div-int/lit8 p3, p3, 0x2

    iput p3, p0, Lcom/estrongs/android/ui/view/CrownView;->j:I

    .line 4
    div-int/lit8 p3, p1, 0x2

    iput p3, p0, Lcom/estrongs/android/ui/view/CrownView;->l:I

    .line 5
    div-int/lit8 p2, p2, 0x2

    iput p2, p0, Lcom/estrongs/android/ui/view/CrownView;->m:I

    shr-int/lit8 p1, p1, 0x1

    int-to-float p1, p1

    .line 6
    invoke-virtual {p0, p1}, Landroid/view/View;->setPivotX(F)V

    .line 7
    iget p1, p0, Lcom/estrongs/android/ui/view/CrownView;->m:I

    iget-object p2, p0, Lcom/estrongs/android/ui/view/CrownView;->a:Landroid/graphics/Bitmap;

    invoke-virtual {p2}, Landroid/graphics/Bitmap;->getHeight()I

    move-result p2

    shr-int/lit8 p2, p2, 0x1

    add-int/2addr p1, p2

    int-to-float p1, p1

    invoke-virtual {p0, p1}, Landroid/view/View;->setPivotY(F)V

    return-void
.end method
